.class Lcom/example/usercenter/UserCenterActivity2$2;
.super Ljava/lang/Thread;
.source "UserCenterActivity2.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/usercenter/UserCenterActivity2;->getuerinfo()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/usercenter/UserCenterActivity2;


# direct methods
.method constructor <init>(Lcom/example/usercenter/UserCenterActivity2;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    .line 336
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x0

    .line 338
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 339
    iget-object v9, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    .line 340
    const-string v10, "userInfo"

    .line 339
    invoke-virtual {v9, v10, v11}, Lcom/example/usercenter/UserCenterActivity2;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 341
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 344
    .local v0, "account":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 345
    .local v5, "pwd":Ljava/lang/String;
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 347
    .local v3, "msg":Landroid/os/Message;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    # getter for: Lcom/example/usercenter/UserCenterActivity2;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/usercenter/UserCenterActivity2;->access$10(Lcom/example/usercenter/UserCenterActivity2;)Lmyapp/MyApp;

    move-result-object v10

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 348
    const-string v10, "/index.php?ctrl=app&action=appuserinfo&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 349
    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 347
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 351
    .local v7, "url":Ljava/lang/String;
    const-string v9, "getuerinfo-------------"

    invoke-static {v9, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 353
    iget-object v9, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    # getter for: Lcom/example/usercenter/UserCenterActivity2;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/usercenter/UserCenterActivity2;->access$10(Lcom/example/usercenter/UserCenterActivity2;)Lmyapp/MyApp;

    move-result-object v9

    invoke-static {v7, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v6

    .line 358
    .local v6, "str":Ljava/lang/String;
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 359
    .local v2, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v2, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 378
    .end local v2    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 364
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v9, "msg"

    invoke-virtual {v2, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 365
    iget-object v9, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    const-string v10, "userInfo"

    const/4 v11, 0x0

    invoke-virtual {v9, v10, v11}, Lcom/example/usercenter/UserCenterActivity2;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v8

    .line 366
    .local v8, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v8}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "score"

    const-string v11, "score"

    invoke-virtual {v2, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 367
    invoke-interface {v8}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "cost"

    const-string v11, "cost"

    invoke-virtual {v2, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 368
    invoke-interface {v8}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "username"

    const-string v11, "username"

    invoke-virtual {v2, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 370
    const/4 v9, 0x4

    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 371
    iget-object v9, p0, Lcom/example/usercenter/UserCenterActivity2$2;->this$0:Lcom/example/usercenter/UserCenterActivity2;

    # getter for: Lcom/example/usercenter/UserCenterActivity2;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/usercenter/UserCenterActivity2;->access$11(Lcom/example/usercenter/UserCenterActivity2;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 373
    .end local v2    # "json":Lorg/json/JSONObject;
    .end local v8    # "userInfo":Landroid/content/SharedPreferences;
    :catch_0
    move-exception v1

    .line 374
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
